<h2>
  <%=h @list.name %>
</h2>

<% if @items.any? %>
  <ol>
    <% for item in @items %>
      <li><%= h item.description %></li>
    <% end %>
  </ol>
<% else %>
  <p>
    Nothing in this list
  </p>
<% end %>

<%= link_to 'Items', items_path(@list) %> |
<%= link_to 'Edit', edit_list_path(@list) %> |
<%= link_to 'Back', lists_path %>
